package com.bunnyhsu.enums;

/**
 * Created by xl on 2018/4/12.
 */
public enum FailEnum {
    LOGIN_FAIL(1001,"账号或密码错误"),
    NO_ANTH(1002,"请先登录"),
    TOKEN_WRONG(1003,"token已失效，请重新登录"),
    NUMBER_UNSUIT(1004,"页码号和单页显示数目必须大于0"),
    TYPE_NONEXIST(1005,"类别不存在"),
    SUGGEST_NONEXIST(1006,"id无效，建议不存在"),
    HANDIN_ERROR(1007,"建议提交失败")
    ;


    int id;
    String msg;

    FailEnum(int id, String msg) {
        this.id = id;
        this.msg = msg;
    }

    public int getId() {
        return id;
    }

    public String getMsg() {
        return msg;
    }
}
